package com.wsc.wsckeeper.persistence.dao;

import java.sql.SQLException;
import java.util.List;

import com.j256.ormlite.dao.Dao;
import com.wsc.wsckeeper.model.entity.CardTypeE;

@SuppressWarnings("rawtypes")
public class CardTypeDAO extends GenericDao {

	public static CardTypeE create(CardTypeE cardType) throws SQLException, Exception {
		Dao<CardTypeE, Long> dao = getCardTypeDao();
		dao.create(cardType);
		return cardType;
	}
	
	public static List<CardTypeE> queryForAll() throws SQLException, Exception {
		Dao<CardTypeE, Long> dao = getCardTypeDao();
		return dao.queryForAll();
	}
}
